﻿@model CNav.Domain.Admin.DataSource

@{
    ViewBag.Title = "Data Source - Delete";
}
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <div id="dataSource">
        <h3>Are you sure you want to delete this?</h3>
        <ol>
            <li>
                <label>Data name</label> @Html.DisplayFor(model => model.Name)
            </li>

            <li>
                <label>&nbsp;</label>
                <input type="submit" value="Delete" />
                <input type="button" value="Cancel" id="cancelButton" />
            </li>

        </ol>
    </div>
}

<script type="text/javascript">
    $(document).ready(function () {

        var cc = new CaseCentre();
        cc.BindCancel('#cancelButton', '@Url.Content("~/DataSource/Index")');
    });
</script>